# coding: utf-8
from marshmallow import Schema, fields
from model.model_base import Base
from sqlalchemy import Column, String


class PowerSupplyBureauList(Base):
    # 供电公司对照表
    __tablename__ = 'PowerSupplyBureauList'
    id = Column(String(2), primary_key=True, comment='供电公司id')
    name = Column(String(50), nullable=False, comment='供电公司名称')
    area_flag = Column(String(1), nullable=False, comment='区域标志（1廊坊2衡水3邢台）')

class BureauListSchema(Schema):
    id = fields.String()
    name = fields.String()
    area_flag = fields.String()

bureauListSchema = BureauListSchema()

